package com.atmk.atmk.designMode.创建型.工厂模式.工厂方法.反射;


import com.atmk.atmk.designMode.创建型.工厂模式.工厂方法.具体产品.MeiZu;
import com.atmk.atmk.designMode.创建型.工厂模式.工厂方法.具体产品.Xiaomi;

public class Main {
    public static void main(String[] args) throws IllegalAccessException, InstantiationException, ClassNotFoundException {
        PhoneFactory.getInstance(Xiaomi.class.getName()).getBrand();  //传入类的完整报类名
        PhoneFactory.getInstance(MeiZu.class.getName()).getBrand();

    }

}
